package com.qf.mapper;

import com.qf.dto.UserDto;
import com.qf.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {

    @Select("select * from users where username=#{username} ")
    User getUserByUserName(String username);

    @Insert("insert into users(username,password,passwordsalt) value(#{username},#{password},#{passwordsalt})")
    void addUser(UserDto userDto);
}
